package com.example.cwfdemo.service;

import com.example.cwfdemo.utils.RedisUtils;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author Carson
 * @Date 2019/8/26 0:26
 */
@Service
@Slf4j
public class RedisService {


    @Autowired
    private RedisUtils redisUtils;


    public void setKeyValue(String key, String value) {
        redisUtils.set(key, value);
    }

    public Object getKeyValue(String key) {
        return redisUtils.get(key);
    }

}
